$OpenBSD: patch-chrome_browser_task_manager_sampling_task_group_sampler_cc,v 1.1 2017/02/23 17:30:49 robert Exp $
--- chrome/browser/task_manager/sampling/task_group_sampler.cc.orig.port	Sat Feb  4 11:46:22 2017
+++ chrome/browser/task_manager/sampling/task_group_sampler.cc	Sat Feb  4 12:35:13 2017
@@ -36,7 +36,7 @@ TaskGroupSampler::TaskGroupSampler(
     const OnCpuRefreshCallback& on_cpu_refresh,
     const OnMemoryRefreshCallback& on_memory_refresh,
     const OnIdleWakeupsCallback& on_idle_wakeups,
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
     const OnOpenFdCountCallback& on_open_fd_count,
 #endif  // defined(OS_LINUX)
     const OnProcessPriorityCallback& on_process_priority)
@@ -46,7 +46,7 @@ TaskGroupSampler::TaskGroupSampler(
       on_cpu_refresh_callback_(on_cpu_refresh),
       on_memory_refresh_callback_(on_memory_refresh),
       on_idle_wakeups_callback_(on_idle_wakeups),
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
       on_open_fd_count_callback_(on_open_fd_count),
 #endif  // defined(OS_LINUX)
       on_process_priority_callback_(on_process_priority) {
@@ -80,7 +80,7 @@ void TaskGroupSampler::Refresh(int64_t refresh_flags) 
         on_memory_refresh_callback_);
   }
 
-#if defined(OS_MACOSX) || defined(OS_LINUX)
+#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
   if (TaskManagerObserver::IsResourceRefreshEnabled(REFRESH_TYPE_IDLE_WAKEUPS,
                                                     refresh_flags)) {
     base::PostTaskAndReplyWithResult(
